package com.mad.game.controller;

import java.awt.event.ActionEvent;

import javax.swing.JFrame;

import com.mad.game.backend.GameDemo;

public class GameExitApplicationMouseController extends DefaultMouseController{

	
	public GameExitApplicationMouseController(JFrame wnd) {
		super(wnd);
	}

	@Override
	public void actionPerformed(ActionEvent e) {
		this.parentWnd.dispose(); 
		GameDemo.getGameInstance().exitApplication();
	}

	
	
}
